package com.example.monitoring.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Map;

/**
 * 服务检查响应类，用于解析目标服务的响应
 * 
 * @author rsz
 * @since 2024-04-13
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class ServiceCheckResponse {
    /**
     * 响应代码
     */
    @JsonProperty(value = "RespCode", required = false)
    private Integer respCode;
    
    /**
     * 状态码
     */
    @JsonProperty(value = "code", required = false)
    private Integer code;
    
    /**
     * 结果数据
     */
    @JsonProperty(value = "Result", required = false)
    private ResultData result;
    
    /**
     * 结果数据内部类
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ResultData {
        /**
         * 结果映射
         */
        @JsonProperty(value = "map", required = false)
        private Map<String, String> map;
    }
} 